<?php
/* @var $this EntryController */
/* @var $model Entry */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'entry-form',
	   'enableClientValidation'=>true,
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'PRO'); ?>
		<?php echo $form->textField($model,'code',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'code'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'Entry Control No'); ?>
		<?php echo $form->textField($model,'customs_entry_no',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'customs_entry_no'); ?>
	</div>
	
	
	
	
		<div class="row">
		<?php echo $form->labelEx($model,'date'); ?>
			<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'model'=>$model, 'attribute'=>'date',
        'options'=>array(
            'dateFormat'=>'yy-mm-dd',
            'yearRange'=>'-20:+20',
            'changeYear'=>'true',
            'changeMonth'=>'true',
        ),
		)); ?>
		<?php echo $form->error($model,'date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'client_id'); ?>
		<?php echo $form->dropDownList($model, 'client_id', CHtml::listData(Client::model()->findAll(), 'id', 'name'),
	array('prompt' => 'Select a Client')
	); ?>
	</div>
	
		

	<div class="row">
		<?php echo $form->labelEx($model,'port_id'); ?>
		<?php echo $form->dropDownList($model, 'port_id', CHtml::listData(Port::model()->findAll(), 'id', 'name'),
	array('prompt' => 'Select a Port')
	); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'shipping_line_id'); ?>
		<?php echo $form->dropDownList($model, 'shipping_line_id', CHtml::listData(ShippingLine::model()->findAll(), 'id', 'name'),
	array('prompt' => 'Select a Shipping Line')
	); ?>
	</div>

	
	<div class="row">
		<?php echo $form->labelEx($model,'country_of_origin'); ?>
		
		<?php echo $form->dropDownList($model, 'country_of_origin',$htmlOptions=array
		(
  "Not Available"=>"Not Available", 
   "United States"=>"United States", 
   "United Kingdom"=>"United Kingdom", 
   "Afghanistan"=>"Afghanistan", 
   "Albania"=>"Albania", 
   "Algeria"=>"Algeria", 
   "American Samoa"=>"American Samoa", 
   "Andorra"=>"Andorra", 
   "Angola"=>"Angola", 
   "Anguilla"=>"Anguilla", 
   "Antarctica"=>"Antarctica", 
   "Antigua and Barbuda"=>"Antigua and Barbuda", 
   "Argentina"=>"Argentina", 
   "Armenia"=>"Armenia", 
   "Aruba"=>"Aruba", 
   "Australia"=>"Australia", 
   "Austria"=>"Austria", 
   "Azerbaijan"=>"Azerbaijan", 
   "Bahamas"=>"Bahamas", 
   "Bahrain"=>"Bahrain", 
   "Bangladesh"=>"Bangladesh", 
   "Barbados"=>"Barbados", 
   "Belarus"=>"Belarus", 
   "Belgium"=>"Belgium", 
   "Belize"=>"Belize", 
   "Benin"=>"Benin", 
   "Bermuda"=>"Bermuda", 
   "Bhutan"=>"Bhutan", 
   "Bolivia"=>"Bolivia", 
   "Bosnia and Herzegovina"=>"Bosnia and Herzegovina", 
   "Botswana"=>"Botswana", 
   "Bouvet Island"=>"Bouvet Island", 
   "Brazil"=>"Brazil", 
   "British Indian Ocean Territory"=>"British Indian Ocean Territory", 
   "Brunei Darussalam"=>"Brunei Darussalam", 
   "Bulgaria"=>"Bulgaria", 
   "Burkina Faso"=>"Burkina Faso", 
   "Burundi"=>"Burundi", 
   "Cambodia"=>"Cambodia", 
   "Cameroon"=>"Cameroon", 
   "Canada"=>"Canada", 
   "Cape Verde"=>"Cape Verde", 
   "Cayman Islands"=>"Cayman Islands", 
   "Central African Republic"=>"Central African Republic", 
   "Chad"=>"Chad", 
   "Chile"=>"Chile", 
   "China"=>"China", 
   "Christmas Island"=>"Christmas Island", 
   "Cocos (Keeling) Islands"=>"Cocos (Keeling) Islands", 
   "Colombia"=>"Colombia", 
   "Comoros"=>"Comoros", 
   "Congo"=>"Congo", 
   "Congo, The Democratic Republic of The"=>"Congo, The Democratic Republic of The", 
   "Cook Islands"=>"Cook Islands", 
   "Costa Rica"=>"Costa Rica", 
   "Cote D'ivoire"=>"Cote D'ivoire", 
   "Croatia"=>"Croatia", 
   "Cuba"=>"Cuba", 
   "Cyprus"=>"Cyprus", 
   "Czech Republic"=>"Czech Republic", 
   "Denmark"=>"Denmark", 
   "Djibouti"=>"Djibouti", 
   "Dominica"=>"Dominica", 
   "Dominican Republic"=>"Dominican Republic", 
   "Ecuador"=>"Ecuador", 
   "Egypt"=>"Egypt", 
   "El Salvador"=>"El Salvador", 
   "Equatorial Guinea"=>"Equatorial Guinea", 
   "Eritrea"=>"Eritrea", 
   "Estonia"=>"Estonia", 
   "Ethiopia"=>"Ethiopia", 
   "Falkland Islands (Malvinas)"=>"Falkland Islands (Malvinas)", 
   "Faroe Islands"=>"Faroe Islands", 
   "Fiji"=>"Fiji", 
   "Finland"=>"Finland", 
   "France"=>"France", 
   "French Guiana"=>"French Guiana", 
   "French Polynesia"=>"French Polynesia", 
   "French Southern Territories"=>"French Southern Territories", 
   "Gabon"=>"Gabon", 
   "Gambia"=>"Gambia", 
   "Georgia"=>"Georgia", 
   "Germany"=>"Germany", 
   "Ghana"=>"Ghana", 
   "Gibraltar"=>"Gibraltar", 
   "Greece"=>"Greece", 
   "Greenland"=>"Greenland", 
   "Grenada"=>"Grenada", 
   "Guadeloupe"=>"Guadeloupe", 
   "Guam"=>"Guam", 
   "Guatemala"=>"Guatemala", 
   "Guinea"=>"Guinea", 
   "Guinea-bissau"=>"Guinea-bissau", 
   "Guyana"=>"Guyana", 
   "Haiti"=>"Haiti", 
   "Heard Island and Mcdonald Islands" => "Heard Island and Mcdonald Islands", 
   "Holy See (Vatican City State)"=>"Holy See (Vatican City State)", 
   "Honduras"=>"Honduras", 
   "Hong Kong"=>"Hong Kong", 
   "Hungary"=>"Hungary", 
   "Iceland"=>"Iceland", 
   "India"=>"India", 
   "Indonesia"=>"Indonesia", 
   "Iran, Islamic Republic of"=>"Iran, Islamic Republic of", 
   "Iraq"=>"Iraq", 
   "Ireland"=>"Ireland", 
   "Israel"=>"Israel", 
   "Italy"=>"Italy", 
   "Jamaica"=>"Jamaica", 
   "Japan"=>"Japan", 
   "Jordan"=>"Jordan", 
   "Kazakhstan"=>"Kazakhstan", 
   "Kenya"=>"Kenya", 
   "Kiribati"=>"Kiribati", 
   "Korea, Democratic People's Republic of"=>"Korea, Democratic People's Republic of", 
   "Korea, Republic of"=>"Korea, Republic of", 
   "Kuwait"=>"Kuwait", 
   "Kyrgyzstan"=>"Kyrgyzstan", 
   "Lao People's Democratic Republic"=>"Lao People's Democratic Republic", 
   "Latvia"=>"Latvia", 
   "Lebanon"=>"Lebanon", 
   "Lesotho"=>"Lesotho", 
   "Liberia"=>"Liberia", 
   "Libyan Arab Jamahiriya"=>"Libyan Arab Jamahiriya", 
   "Liechtenstein"=>"Liechtenstein", 
   "Lithuania"=>"Lithuania", 
   "Luxembourg"=>"Luxembourg", 
   "Macao"=>"Macao", 
   "Macedonia, The Former Yugoslav Republic of"=>"Macedonia, The Former Yugoslav Republic of", 
   "Madagascar"=>"Madagascar", 
   "Malawi"=>"Malawi", 
   "Malaysia"=>"Malaysia", 
   "Maldives"=>"Maldives", 
   "Mali"=>"Mali", 
   "Malta"=>"Malta", 
   "Marshall Islands"=>"Marshall Islands", 
   "Martinique"=>"Martinique", 
   "Mauritania"=>"Mauritania", 
   "Mauritius"=>"Mauritius", 
   "Mayotte"=>"Mayotte", 
   "Mexico"=>"Mexico", 
   "Micronesia, Federated States of"=>"Micronesia, Federated States of", 
   "Moldova, Republic of"=>"Moldova, Republic of", 
   "Monaco"=>"Monaco", 
   "Mongolia"=>"Mongolia", 
   "Montenegro"=>"Montenegro",
   "Montserrat"=>"Montserrat", 
   "Morocco"=>"Morocco", 
   "Mozambique"=>"Mozambique", 
   "Myanmar"=>"Myanmar", 
   "Namibia"=>"Namibia", 
   "Nauru"=>"Nauru", 
   "Nepal"=>"Nepal", 
   "Netherlands"=>"Netherlands", 
   "Netherlands Antilles"=>"Netherlands Antilles", 
   "New Caledonia"=>"New Caledonia", 
   "New Zealand"=>"New Zealand", 
   "Nicaragua"=>"Nicaragua", 
   "Niger"=>"Niger", 
   "Nigeria"=>"Nigeria", 
   "Niue"=>"Niue", 
   "Norfolk Island"=>"Norfolk Island", 
   "Northern Mariana Islands"=>"Northern Mariana Islands", 
   "Norway"=>"Norway", 
   "Oman"=>"Oman", 
   "Pakistan"=>"Pakistan", 
   "Palau"=>"Palau", 
   "Palestinian Territory, Occupied"=>"Palestinian Territory, Occupied", 
   "Panama"=>"Panama", 
   "Papua New Guinea"=>"Papua New Guinea", 
   "Paraguay"=>"Paraguay", 
   "Peru"=>"Peru", 
   "Philippines"=>"Philippines", 
   "Pitcairn"=>"Pitcairn", 
   "Poland"=>"Poland", 
   "Portugal"=>"Portugal", 
   "Puerto Rico"=>"Puerto Rico", 
   "Qatar"=>"Qatar", 
   "Reunion"=>"Reunion", 
   "Romania"=>"Romania", 
   "Russian Federation"=>"Russian Federation", 
   "Rwanda"=>"Rwanda", 
   "Saint Helena"=>"Saint Helena", 
   "Saint Kitts and Nevis"=>"Saint Kitts and Nevis", 
   "Saint Lucia"=>"Saint Lucia", 
   "Saint Pierre and Miquelon"=>"Saint Pierre and Miquelon", 
   "Saint Vincent and The Grenadines"=>"Saint Vincent and The Grenadines", 
   "Samoa"=>"Samoa", 
   "San Marino"=>"San Marino", 
   "Sao Tome and Principe"=>"Sao Tome and Principe", 
   "Saudi Arabia"=>"Saudi Arabia", 
   "Senegal"=>"Senegal", 
   "Serbia"=>"Serbia", 
   "Seychelles"=>"Seychelles", 
   "Sierra Leone"=>"Sierra Leone", 
   "Singapore"=>"Singapore", 
   "Slovakia"=>"Slovakia", 
   "Slovenia"=>"Slovenia", 
   "Solomon Islands"=>"Solomon Islands", 
   "Somalia"=>"Somalia", 
   "South Africa"=>"South Africa", 
   "South Georgia and The South Sandwich Islands"=>"South Georgia and The South Sandwich Islands", 
   "South Sudan"=>"South Sudan", 
   "Spain"=>"Spain", 
   "Sri Lanka"=>"Sri Lanka", 
   "Sudan"=>"Sudan", 
   "Suriname"=>"Suriname", 
   "Svalbard and Jan Mayen"=>"Svalbard and Jan Mayen", 
   "Swaziland"=>"Swaziland", 
   "Sweden"=>"Sweden", 
   "Switzerland"=>"Switzerland", 
   "Syrian Arab Republic"=>"Syrian Arab Republic", 
   "Taiwan, Republic of China"=>"Taiwan, Republic of China", 
   "Tajikistan"=>"Tajikistan", 
   "Tanzania, United Republic of"=>"Tanzania, United Republic of", 
   "Thailand"=>"Thailand", 
   "Timor-leste"=>"Timor-leste", 
   "Togo"=>"Togo", 
   "Tokelau"=>"Tokelau", 
   "Tonga"=>"Tonga", 
   "Trinidad and Tobago"=>"Trinidad and Tobago", 
   "Tunisia"=>"Tunisia", 
   "Turkey"=>"Turkey", 
   "Turkmenistan"=>"Turkmenistan", 
   "Turks and Caicos Islands"=>"Turks and Caicos Islands", 
   "Tuvalu"=>"Tuvalu", 
   "Uganda"=>"Uganda", 
   "Ukraine"=>"Ukraine", 
   "United Arab Emirates"=>"United Arab Emirates", 
   "United Kingdom"=>"United Kingdom", 
   "United States"=>"United States", 
   "United States Minor Outlying Islands"=>"United States Minor Outlying Islands", 
   "Uruguay"=>"Uruguay", 
   "Uzbekistan"=>"Uzbekistan", 
   "Vanuatu"=>"Vanuatu", 
   "Venezuela"=>"Venezuela", 
   "Viet Nam"=>"Viet Nam", 
   "Virgin Islands, British"=>"Virgin Islands, British", 
   "Virgin Islands, U.S."=>"Virgin Islands, U.S.", 
   "Wallis and Futuna"=>"Wallis and Futuna", 
   "Western Sahara"=>"Western Sahara", 
   "Yemen"=>"Yemen", 
   "Zambia"=>"Zambia", 
   "Zimbabwe"=>"Zimbabwe",
   
		),array('prompt' => 'Choose a country'))?>
		<?php echo $form->error($model,'country_of_origin'); ?>
	</div>
	
	
	
	<div class="row">
		<?php echo $form->labelEx($model,'country_of_export'); ?>
		<?php //echo $form->textField($model,'country_of_export',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->dropDownList($model, 'country_of_export',$htmlOptions=array
		(
  "Not Available"=>"Not Available", 
   "United States"=>"United States", 
   "United Kingdom"=>"United Kingdom", 
   "Afghanistan"=>"Afghanistan", 
   "Albania"=>"Albania", 
   "Algeria"=>"Algeria", 
   "American Samoa"=>"American Samoa", 
   "Andorra"=>"Andorra", 
   "Angola"=>"Angola", 
   "Anguilla"=>"Anguilla", 
   "Antarctica"=>"Antarctica", 
   "Antigua and Barbuda"=>"Antigua and Barbuda", 
   "Argentina"=>"Argentina", 
   "Armenia"=>"Armenia", 
   "Aruba"=>"Aruba", 
   "Australia"=>"Australia", 
   "Austria"=>"Austria", 
   "Azerbaijan"=>"Azerbaijan", 
   "Bahamas"=>"Bahamas", 
   "Bahrain"=>"Bahrain", 
   "Bangladesh"=>"Bangladesh", 
   "Barbados"=>"Barbados", 
   "Belarus"=>"Belarus", 
   "Belgium"=>"Belgium", 
   "Belize"=>"Belize", 
   "Benin"=>"Benin", 
   "Bermuda"=>"Bermuda", 
   "Bhutan"=>"Bhutan", 
   "Bolivia"=>"Bolivia", 
   "Bosnia and Herzegovina"=>"Bosnia and Herzegovina", 
   "Botswana"=>"Botswana", 
   "Bouvet Island"=>"Bouvet Island", 
   "Brazil"=>"Brazil", 
   "British Indian Ocean Territory"=>"British Indian Ocean Territory", 
   "Brunei Darussalam"=>"Brunei Darussalam", 
   "Bulgaria"=>"Bulgaria", 
   "Burkina Faso"=>"Burkina Faso", 
   "Burundi"=>"Burundi", 
   "Cambodia"=>"Cambodia", 
   "Cameroon"=>"Cameroon", 
   "Canada"=>"Canada", 
   "Cape Verde"=>"Cape Verde", 
   "Cayman Islands"=>"Cayman Islands", 
   "Central African Republic"=>"Central African Republic", 
   "Chad"=>"Chad", 
   "Chile"=>"Chile", 
   "China"=>"China", 
   "Christmas Island"=>"Christmas Island", 
   "Cocos (Keeling) Islands"=>"Cocos (Keeling) Islands", 
   "Colombia"=>"Colombia", 
   "Comoros"=>"Comoros", 
   "Congo"=>"Congo", 
   "Congo, The Democratic Republic of The"=>"Congo, The Democratic Republic of The", 
   "Cook Islands"=>"Cook Islands", 
   "Costa Rica"=>"Costa Rica", 
   "Cote D'ivoire"=>"Cote D'ivoire", 
   "Croatia"=>"Croatia", 
   "Cuba"=>"Cuba", 
   "Cyprus"=>"Cyprus", 
   "Czech Republic"=>"Czech Republic", 
   "Denmark"=>"Denmark", 
   "Djibouti"=>"Djibouti", 
   "Dominica"=>"Dominica", 
   "Dominican Republic"=>"Dominican Republic", 
   "Ecuador"=>"Ecuador", 
   "Egypt"=>"Egypt", 
   "El Salvador"=>"El Salvador", 
   "Equatorial Guinea"=>"Equatorial Guinea", 
   "Eritrea"=>"Eritrea", 
   "Estonia"=>"Estonia", 
   "Ethiopia"=>"Ethiopia", 
   "Falkland Islands (Malvinas)"=>"Falkland Islands (Malvinas)", 
   "Faroe Islands"=>"Faroe Islands", 
   "Fiji"=>"Fiji", 
   "Finland"=>"Finland", 
   "France"=>"France", 
   "French Guiana"=>"French Guiana", 
   "French Polynesia"=>"French Polynesia", 
   "French Southern Territories"=>"French Southern Territories", 
   "Gabon"=>"Gabon", 
   "Gambia"=>"Gambia", 
   "Georgia"=>"Georgia", 
   "Germany"=>"Germany", 
   "Ghana"=>"Ghana", 
   "Gibraltar"=>"Gibraltar", 
   "Greece"=>"Greece", 
   "Greenland"=>"Greenland", 
   "Grenada"=>"Grenada", 
   "Guadeloupe"=>"Guadeloupe", 
   "Guam"=>"Guam", 
   "Guatemala"=>"Guatemala", 
   "Guinea"=>"Guinea", 
   "Guinea-bissau"=>"Guinea-bissau", 
   "Guyana"=>"Guyana", 
   "Haiti"=>"Haiti", 
   "Heard Island and Mcdonald Islands" => "Heard Island and Mcdonald Islands", 
   "Holy See (Vatican City State)"=>"Holy See (Vatican City State)", 
   "Honduras"=>"Honduras", 
   "Hong Kong"=>"Hong Kong", 
   "Hungary"=>"Hungary", 
   "Iceland"=>"Iceland", 
   "India"=>"India", 
   "Indonesia"=>"Indonesia", 
   "Iran, Islamic Republic of"=>"Iran, Islamic Republic of", 
   "Iraq"=>"Iraq", 
   "Ireland"=>"Ireland", 
   "Israel"=>"Israel", 
   "Italy"=>"Italy", 
   "Jamaica"=>"Jamaica", 
   "Japan"=>"Japan", 
   "Jordan"=>"Jordan", 
   "Kazakhstan"=>"Kazakhstan", 
   "Kenya"=>"Kenya", 
   "Kiribati"=>"Kiribati", 
   "Korea, Democratic People's Republic of"=>"Korea, Democratic People's Republic of", 
   "Korea, Republic of"=>"Korea, Republic of", 
   "Kuwait"=>"Kuwait", 
   "Kyrgyzstan"=>"Kyrgyzstan", 
   "Lao People's Democratic Republic"=>"Lao People's Democratic Republic", 
   "Latvia"=>"Latvia", 
   "Lebanon"=>"Lebanon", 
   "Lesotho"=>"Lesotho", 
   "Liberia"=>"Liberia", 
   "Libyan Arab Jamahiriya"=>"Libyan Arab Jamahiriya", 
   "Liechtenstein"=>"Liechtenstein", 
   "Lithuania"=>"Lithuania", 
   "Luxembourg"=>"Luxembourg", 
   "Macao"=>"Macao", 
   "Macedonia, The Former Yugoslav Republic of"=>"Macedonia, The Former Yugoslav Republic of", 
   "Madagascar"=>"Madagascar", 
   "Malawi"=>"Malawi", 
   "Malaysia"=>"Malaysia", 
   "Maldives"=>"Maldives", 
   "Mali"=>"Mali", 
   "Malta"=>"Malta", 
   "Marshall Islands"=>"Marshall Islands", 
   "Martinique"=>"Martinique", 
   "Mauritania"=>"Mauritania", 
   "Mauritius"=>"Mauritius", 
   "Mayotte"=>"Mayotte", 
   "Mexico"=>"Mexico", 
   "Micronesia, Federated States of"=>"Micronesia, Federated States of", 
   "Moldova, Republic of"=>"Moldova, Republic of", 
   "Monaco"=>"Monaco", 
   "Mongolia"=>"Mongolia", 
   "Montenegro"=>"Montenegro",
   "Montserrat"=>"Montserrat", 
   "Morocco"=>"Morocco", 
   "Mozambique"=>"Mozambique", 
   "Myanmar"=>"Myanmar", 
   "Namibia"=>"Namibia", 
   "Nauru"=>"Nauru", 
   "Nepal"=>"Nepal", 
   "Netherlands"=>"Netherlands", 
   "Netherlands Antilles"=>"Netherlands Antilles", 
   "New Caledonia"=>"New Caledonia", 
   "New Zealand"=>"New Zealand", 
   "Nicaragua"=>"Nicaragua", 
   "Niger"=>"Niger", 
   "Nigeria"=>"Nigeria", 
   "Niue"=>"Niue", 
   "Norfolk Island"=>"Norfolk Island", 
   "Northern Mariana Islands"=>"Northern Mariana Islands", 
   "Norway"=>"Norway", 
   "Oman"=>"Oman", 
   "Pakistan"=>"Pakistan", 
   "Palau"=>"Palau", 
   "Palestinian Territory, Occupied"=>"Palestinian Territory, Occupied", 
   "Panama"=>"Panama", 
   "Papua New Guinea"=>"Papua New Guinea", 
   "Paraguay"=>"Paraguay", 
   "Peru"=>"Peru", 
   "Philippines"=>"Philippines", 
   "Pitcairn"=>"Pitcairn", 
   "Poland"=>"Poland", 
   "Portugal"=>"Portugal", 
   "Puerto Rico"=>"Puerto Rico", 
   "Qatar"=>"Qatar", 
   "Reunion"=>"Reunion", 
   "Romania"=>"Romania", 
   "Russian Federation"=>"Russian Federation", 
   "Rwanda"=>"Rwanda", 
   "Saint Helena"=>"Saint Helena", 
   "Saint Kitts and Nevis"=>"Saint Kitts and Nevis", 
   "Saint Lucia"=>"Saint Lucia", 
   "Saint Pierre and Miquelon"=>"Saint Pierre and Miquelon", 
   "Saint Vincent and The Grenadines"=>"Saint Vincent and The Grenadines", 
   "Samoa"=>"Samoa", 
   "San Marino"=>"San Marino", 
   "Sao Tome and Principe"=>"Sao Tome and Principe", 
   "Saudi Arabia"=>"Saudi Arabia", 
   "Senegal"=>"Senegal", 
   "Serbia"=>"Serbia", 
   "Seychelles"=>"Seychelles", 
   "Sierra Leone"=>"Sierra Leone", 
   "Singapore"=>"Singapore", 
   "Slovakia"=>"Slovakia", 
   "Slovenia"=>"Slovenia", 
   "Solomon Islands"=>"Solomon Islands", 
   "Somalia"=>"Somalia", 
   "South Africa"=>"South Africa", 
   "South Georgia and The South Sandwich Islands"=>"South Georgia and The South Sandwich Islands", 
   "South Sudan"=>"South Sudan", 
   "Spain"=>"Spain", 
   "Sri Lanka"=>"Sri Lanka", 
   "Sudan"=>"Sudan", 
   "Suriname"=>"Suriname", 
   "Svalbard and Jan Mayen"=>"Svalbard and Jan Mayen", 
   "Swaziland"=>"Swaziland", 
   "Sweden"=>"Sweden", 
   "Switzerland"=>"Switzerland", 
   "Syrian Arab Republic"=>"Syrian Arab Republic", 
   "Taiwan, Republic of China"=>"Taiwan, Republic of China", 
   "Tajikistan"=>"Tajikistan", 
   "Tanzania, United Republic of"=>"Tanzania, United Republic of", 
   "Thailand"=>"Thailand", 
   "Timor-leste"=>"Timor-leste", 
   "Togo"=>"Togo", 
   "Tokelau"=>"Tokelau", 
   "Tonga"=>"Tonga", 
   "Trinidad and Tobago"=>"Trinidad and Tobago", 
   "Tunisia"=>"Tunisia", 
   "Turkey"=>"Turkey", 
   "Turkmenistan"=>"Turkmenistan", 
   "Turks and Caicos Islands"=>"Turks and Caicos Islands", 
   "Tuvalu"=>"Tuvalu", 
   "Uganda"=>"Uganda", 
   "Ukraine"=>"Ukraine", 
   "United Arab Emirates"=>"United Arab Emirates", 
   "United Kingdom"=>"United Kingdom", 
   "United States"=>"United States", 
   "United States Minor Outlying Islands"=>"United States Minor Outlying Islands", 
   "Uruguay"=>"Uruguay", 
   "Uzbekistan"=>"Uzbekistan", 
   "Vanuatu"=>"Vanuatu", 
   "Venezuela"=>"Venezuela", 
   "Viet Nam"=>"Viet Nam", 
   "Virgin Islands, British"=>"Virgin Islands, British", 
   "Virgin Islands, U.S."=>"Virgin Islands, U.S.", 
   "Wallis and Futuna"=>"Wallis and Futuna", 
   "Western Sahara"=>"Western Sahara", 
   "Yemen"=>"Yemen", 
   "Zambia"=>"Zambia", 
   "Zimbabwe"=>"Zimbabwe",
   
		),array('prompt' => 'Choose a country'))?>
		
		<?php echo $form->error($model,'country_of_export'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'manifest_no'); ?>
		<?php echo $form->textField($model,'manifest_no',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'manifest_no'); ?>
	</div>

	<div class="row">
			<?php echo $form->labelEx($model,'lodge_date'); ?>
		
			<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'model'=>$model, 'attribute'=>'lodge_date',
        'options'=>array(
            'dateFormat'=>'yy-mm-dd',
            'yearRange'=>'-20:+20',
            'changeYear'=>'true',
            'changeMonth'=>'true',
        ),
		)); ?>
		<?php echo $form->error($model,'lodge_date'); ?>
	</div>

	
	
	<div class="row">
		<?php echo $form->labelEx($model,'final_assement_payment_date'); ?>

			
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'model'=>$model, 'attribute'=>'final_assement_payment_date',
        'options'=>array(
            'dateFormat'=>'yy-mm-dd',
            'yearRange'=>'-20:+20',
            'changeYear'=>'true',
            'changeMonth'=>'true',
        ),
		)); ?>
		<?php echo $form->error($model,'final_assement_payment_date'); ?>
	</div>
	
	
	<div class="row">
		<?php echo $form->labelEx($model,'ETA'); ?>
			<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'model'=>$model, 'attribute'=>'ETA',
        'options'=>array(
            'dateFormat'=>'yy-mm-dd',
            'yearRange'=>'-20:+20',
            'changeYear'=>'true',
            'changeMonth'=>'true',
        ),
		)); ?>
		<?php echo $form->error($model,'ETA'); ?>
	</div>

	<div class="row">
		<div class="row">
		<?php echo $form->labelEx($model,'selectivity'); ?>
		<?php echo $form->dropDownList($model, 'selectivity',$htmlOptions=array
		(
		'Green' =>'Green',
		'Yellow' =>'Yellow',
		'Red' =>'Red',
		'pending' => 'pending'
		),array('prompt' => 'Select')) ?>
		<?php echo $form->error($model,'selectivity'); ?>
	</div>

	

	<div class="row">
		<?php echo $form->labelEx($model,'section'); ?>
		<?php echo $form->dropDownList($model, 'section',$htmlOptions=array
		(
		'1' =>'1',
		'2' =>'2',
		'3' =>'3',
		'4' =>'4',
		'5' =>'5',
		'6' =>'6',
		'7' =>'7',
		'8' =>'8',
		'9' =>'9',
		'10' =>'10',
		'11' =>'11',
		'12' =>'12',
		'13' =>'13',
			'14' =>'14',
			'15' =>'15',
				'pending' =>'pending'
		),array('prompt' => 'select one')) ?>
		<?php echo $form->error($model,'section'); ?>
	</div>

	
	
	<div class="row">
		<?php echo $form->labelEx($model,'item'); ?>
		<?php echo $form->textField($model,'item',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'item'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'container_size'); ?>
		<?php echo $form->textField($model,'container_size',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'container_size'); ?>
	</div>
	
	

	<div class="row">
		<?php echo $form->labelEx($model,'bill_of_lading_no'); ?>
		<?php echo $form->textField($model,'bill_of_lading_no',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'bill_of_lading_no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'final_assessment'); ?>
		<?php echo $form->textField($model,'final_assessment',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'final_assessment'); ?>
		
			 <?php echo $form->hiddenField($model,'status_id'); ?>
	</div>
	
	

	

	
	<div class="row">
		<?php echo $form->labelEx($model,'terms_of_delivery'); ?>
		<?php echo $form->textField($model,'terms_of_delivery',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'terms_of_delivery'); ?>
	</div>
	
	
	<div class="row">
		<?php echo $form->labelEx($model,'vessel_aircraft'); ?>
		<?php echo $form->textField($model,'vessel_aircraft',array('size'=>70,'maxlength'=>70)); ?>
		<?php echo $form->error($model,'vessel_aircraft'); ?>
	</div>
	

	
	
	
	
	
	<div class="row">
		<?php echo $form->labelEx($model,'terms_of_payment'); ?>
		<?php echo $form->textField($model,'terms_of_payment',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'terms_of_payment'); ?>
	</div>
	
	<h1>Bill of Lading Data</h1>
	
	<div class="row">
		<?php echo $form->labelEx($model,'arrastre'); ?>
		<?php echo $form->textField($model,'arrastre',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'arrastre'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'wharfage'); ?>
		<?php echo $form->textField($model,'wharfage',array('size'=>16,'maxlength'=>16)); ?>
		<?php echo $form->error($model,'wharfage'); ?>
	</div>


	<div class="row">
		<?php echo $form->labelEx($model,'insurance'); ?>
		<?php echo $form->textField($model,'insurance',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'insurance'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'freight'); ?>
		<?php echo $form->textField($model,'freight',array('size'=>16,'maxlength'=>16)); ?>
		<?php echo $form->error($model,'freight'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'container_deposit'); ?>
		<?php echo $form->textField($model,'container_deposit',array('size'=>16,'maxlength'=>16)); ?>
		<?php echo $form->error($model,'container_deposit'); ?>
	</div>

	<h1>Exporter Data</h1>
	
	<div class="row">
		<?php echo $form->labelEx($model,'exporter_name'); ?>
		<?php echo $form->textField($model,'exporter_name',array('size'=>70,'maxlength'=>70)); ?>
		<?php echo $form->error($model,'exporter_name'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'exporter_address'); ?>
		<?php echo $form->textField($model,'exporter_address',array('size'=>250,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'exporter_address'); ?>
	</div>
	
	
	<div class="row">
		<?php echo $form->labelEx($model,'exporter_tin'); ?>
		<?php echo $form->textField($model,'exporter_tin',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'exporter_tin'); ?>
	</div>
	
	
	<h1>Banking Data</h1>
	
	
	<div class="row">
		<?php echo $form->labelEx($model,'bank_code'); ?>
		<?php echo $form->textField($model,'bank_code',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'bank_code'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'bank_name'); ?>
		<?php echo $form->textField($model,'bank_name',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'bank_name'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'bank_branch'); ?>
		<?php echo $form->textField($model,'bank_branch',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'bank_branch'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'bank_reference_no'); ?>
		<?php echo $form->textField($model,'bank_reference_no',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'bank_reference_no'); ?>
	</div>
	
	
	
	
	
	
	
	

	

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->